Terminal Client code added