This function is fine for now, but it really should be implemented on the C++ class.  Please make a new issue and assign it to me.  Unless you wanna try your hand at it ;)