Cleaned up CompileWorker