Refactor server call to write response