Made the DELAY command work using a "continuation" so that it won't block if a long delay is specified.