Working looping initial code.