Removed writing field from the middleware