Simplify the recycle loop using range