Added background loop method