Converted CRTS to C++