Added System.exit(0);