Rename wrap to loop