     func updateOpenButtonScanning() {
         
         UIView.animateWithDuration(0.5, animations: {
-            self.openButton.backgroundColor = self.BUTTON_COLOR_SCANNING_NORMAL
+            self.openButton.backgroundColor = self.Colors.scanning
         })
         
         self.openButton.setBackgroundImage(
-            UIImage.imageWithColor(BUTTON_COLOR_SCANNING_NORMAL),
+            UIImage.imageWithColor(self.Colors.scanning),
             forState: UIControlState.Highlighted
         )
         

    func updateOpenButtonStartScan() {
        
        UIView.animateWithDuration(0.5, animations: {
            self.openButton.backgroundColor = self.BUTTON_COLOR_START_SCAN_NORMAL
        })
        
        self.openButton.setBackgroundImage(
            UIImage.imageWithColor(BUTTON_COLOR_START_SCAN_HIGHLIGHT),
            forState: UIControlState.Highlighted
        )


// Constructing global singleton of this
var captureCtrl : GOCaptureController = GOCaptureController()

// Struct containing the colors I use.
struct GOOpenerColors {
    let wait              = UIColor.colorWithHex("#D00000")!
    let waitHighlight     = UIColor.colorWithHex("#D00000")!
    let open              = UIColor.colorWithHex("#33BB33")!
    let openHighlight     = UIColor.colorWithHex("#208840")!
    let scanning          = UIColor.colorWithHex("#D00000")!
    let scanningHighlight = UIColor.colorWithHex("#D00000")!
    let start             = UIColor.colorWithHex("#1080C0")! //  FFAA00
    let startHighlight    = UIColor.colorWithHex("#0C4778")! // 0C4778 FFDD00
}


class GOOpenerController: UIViewController {
    @IBOutlet weak var openButton: UIButton!
    @IBOutlet weak var statusLabel: UILabel!
