Made response parsing more readable