Added debug code to print what the server sends