Protect the Write method