Added chunked response handling