Modified Client
  -added debug statements