Made client work on command line instead of prompt.