Added infrastructure to TimeScheduler event loop to handle repeating events