Implemented the IterativeLoop