Added debug fprintfs to client