replace while True: sleep(1) with one longer sleep