Derived variables directly calculated from function calls in the C++ version too.