Made sure handlers are run only once per iteration.