Added a writer and a command line tool.