Added WriteResponse structure