changed Sleep(5) to Sleep(1)