Added option to delay main program.