Corrected timer (+ threadDelay using)