Added writeData convenience methods