Eliminate a loop