Added command line switch "-window"