Updated c client