Modified code to not override the response prototype