updates delay to a new syntax
adds function/timeout module