added conditions for running the jiffy client iteration