Updated command_line_interaface function