Added timed events, "wait" and "time" commands