Implement "throttling" for WorkerThread.
Add setThrottling function.
Add build and running script.