Added chaining support to Write methods