Lennart's fix not to create too many setTimeouts