Setup loops in the app