Added lots of logging
Implemented propper handling of >4KB responses