Simplify the Write method