Moving the sleep, don't want to sleep here since the thread may exit while sleeping causing you to restart and md5sum all over again when not needed