Inline docs for write functions