Changed a loop