Setup loop so that we don't exit out to main routine if we don't need to.