Initial implementation for write support in the API