Added methods to CommandLineUI class