Parsing the response from server