Initial code for loop.