Add event creation library and implement in scheduler.