C++ version of kineticlib