Refactor connecting to tracker and parsing tracker response