Add functions to support high level bindings