Generic event scheduler.