Rewrite commandline interface.