Working with multiple calls to the loop method