Add basic commandline functionality.