Remove unnecessary threadDelay call