Compare last_run in the background loop.