Add event creation library and implement in scheduler.

go vet this module