[Evgeny, Jason] delay and defer functions, TODO doxx, tests