Changing the bindings for maxMemoryUsage to use the same functions as in the C++ interface.