Improvements to CWorker and debug support classes.