Fixed timing bug in new scheduler.
Initial import of event driven GUI.