Implemented Evaluation of loops