Working requests, responses not parsed, code needs refactoring