implement optional delay - resolves #820

simplify code structure

(0) -100 -30 -10 -2 +2 tip

mercurial