Command line interface now reads from stdin.