CLeaned up for loop.