Rebuilt code that parses responses and send requests.