Updated method_wrapper to recognize response instance