Added command line switch to use console, will use GUI by default.