Added code to handle situations where response_code != 1 that indicates success