Working Commandline code.