Reduce the sleep of waitTask from 1s to 100ms