Refactoring of "start delay" code