Move clop_worker.cpp to C++