Add support for native pointers