Need to completely change timer, forgetting that I'm putting the main thread to sleep