Add time.sleep to wait-loop in main()