Created hook responseAlter to allow changing a response right before it is sent.