Working command line client, but with no exception handling