Renamed measure_response to pattern_response