Added option to show window and progress output