     override open func viewWillDisappear(_ animated: Bool) {
         super.viewWillDisappear(animated)
         
-        // If the start date is nil, then this is being cancelled by the user in which case we need
-        // to remove the observers and *not* wait for a result
         removeRotationObserver()
     }
     

            testDidFinish(result: nil)
            return
        }
        self.startDate = Date()
        self.show(viewController, sender: self)
    }
    


open class SBABrainBaselineStepViewController: ORKStepViewController {
    
    open class var nibName: String {
        return String(describing: SBABrainBaselineStepViewController.self)
    }
    
    open class var bundle: Bundle {
        return Bundle(for: SBABrainBaselineStepViewController.classForCoder())
    }
    
    @IBOutlet open weak var backgroundImageView: UIImageView!
    @IBOutlet open weak var deviceImageView: UIView!
    @IBOutlet open weak var instructionLabel: UILabel!
    
    override public init(step: ORKStep?) {
        super.init(nibName: type(of: self).nibName, bundle: type(of: self).bundle)
        self.step = step
    }
    
    override public convenience init(step: ORKStep, result: ORKResult) {
        self.init(step: step)
    }
    
    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }

    public var startDate: Date?
    
    open var testName: String? {
