Replaced the service mechanism with a scheduler.