     }
     
     func updateSettingsAndVariancesFromConfigureSheet() {
-        settings.bg_color.r = UInt8(bg_colorWell.color.redComponent*255.0)
-        settings.bg_color.g = UInt8(bg_colorWell.color.greenComponent*255.0)
-        settings.bg_color.b = UInt8(bg_colorWell.color.blueComponent*255.0)
-        settings.bg_color.a = UInt8(bg_colorWell.color.alphaComponent*255.0)
-
-        settings.speed = speedSlider.integerValue
-        settings.padding = paddingSlider.integerValue
-        settings.split_dt_start = split_dt_startField.floatValue
-        settings.split_dt_factor = split_dt_factorField.floatValue
-        settings.split_dt_min = split_dt_minField.floatValue
-        settings.split_dt_max = split_dt_maxField.floatValue
-        settings.split_rate_start = split_rate_startField.floatValue
-        settings.split_rate_factor = split_rate_factorField.floatValue
-        settings.end_pause_time = end_pause_timeField.floatValue
-        settings.colored_path = (colored_pathButton.state == NSOnState)
-        settings.validate()
+        base_settings.bg_color.r = UInt8(bg_colorWell.color.redComponent*255)
+        base_settings.bg_color.g = UInt8(bg_colorWell.color.greenComponent*255)
+        base_settings.bg_color.b = UInt8(bg_colorWell.color.blueComponent*255)
+        base_settings.bg_color.a = UInt8(bg_colorWell.color.alphaComponent*255)
+
+        base_settings.speed = speedSlider.integerValue
+        base_settings.padding = paddingSlider.integerValue
+        base_settings.split_dt_start = split_dt_startField.floatValue
+        base_settings.split_dt_factor = split_dt_factorField.floatValue
+        base_settings.split_dt_min = split_dt_minField.floatValue
+        base_settings.split_dt_max = split_dt_maxField.floatValue
+        base_settings.split_rate_start = split_rate_startField.floatValue
+        base_settings.split_rate_factor = split_rate_factorField.floatValue
+        base_settings.end_pause_time = end_pause_timeField.floatValue
+        base_settings.colored_path = (colored_pathButton.state == NSOnState)
+        base_settings.validate()
 
         variances.split_dt_start = split_dt_startSlider.integerValue
         variances.split_dt_factor = split_dt_factorSlider.integerValue

        dx = -dy
        dy = tmp
        split_t = time + split_dt + 2.0 * expf(-0.1 * split_dt * split_dt)
        if (split_dt >= Ant.s.split_dt_min && split_dt <= Ant.s.split_dt_max) {
            split_dt *= Ant.s.split_dt_factor
        }
        split_rate *= Ant.s.split_rate_factor
        num_splits += 1
        return Ant(splitFrom: self)
    }

    var texLoc: GLint = 0
    var imageIndex: Int = 0
    
    var base_settings: AntSettings = AntSettings()
    var rand_settings: AntSettings = AntSettings()
    var variances: AntVariances = AntVariances()
    var pixels: [PixelData]! = nil
    var ants: [Ant] = [Ant]()
    
    var finished: Bool = false
    var finishedTime: NSDate! = nil
    var time: Float = 0.0
    
    @IBOutlet weak var configPanel: NSPanel! = nil
