Modified to work with Scanner_GUI.java