Make the bindings closure friendly