Removed unnecessary for loops to parse results. Added parse_resp() to parse response (resp) data