https://msicc.net/getting-productive-with-wams-how-to-set-up-a-timeout-before-running-code-in-an-interval/
Getting productive with WAMS: how to set up a timeout before running code in an interval