Add end to end of loop