added frame and time based scheduling of events