Converting to C++ for some reason.