Removed dependency on workerthread class