Program sleeps for 10 seconds instead, to avoid excessive CPU usage from polling time.time()