Refactored ScheduledTask with IVar and Concurrent::timer.