Added command line tool to take from stdin.