Made a generic ScheduledAction class.