Changed timeout scheduler to delays so that the timer won't start until
the currect execution finishes.