Changed system outs to showInputDialogs and other changes.