Improve efficiency slightly
Implementation of delay() -- incomplete