Added annotation function to the scheduler.