Fixed bugs, removed sleep from startdzen