Second Half of opt, contains all functions necessary for optGui to run