Did a little cleanup in TaskProcessor.