Simplifying peeling loop