Add support for writing Native