f7d57efe0b
Also added in flag to make sure the routine doesn't try to run more than one iteration simultaneously if a previous iteration is still running.