         } else {
             print("Phone is now unlocked.")
         }
-        // MARK: - Eric You can add code here!! :) 
     }
     
     // MARK: - UI Updates

                    print("received notification: \(name!)")
                    NotificationCenter.default.post(
                        Notification(
                            name: Notification.Name(rawValue: "lock_state_changed")
                        )
                    )
            },
            "com.apple.springboard.hasBlankedScreen" as CFString!,
            nil,
            CFNotificationSuspensionBehavior.deliverImmediately
        )
        
        /*
        CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
                                        nil,
                                        { (center: CFNotificationCenter?, observer: UnsafeMutableRawPointer?, name: CFNotificationName?, object: UnsafeRawPointer?, info: CFDictionary?) in
                                            //self._updateLockScreenStatusMarker()
                                            print("received notification: \(name!)")
                                        },
                                        "com.apple.iokit.hid.displayStatus" as CFString!,
                                        nil,
                                        CFNotificationSuspensionBehavior.deliverImmediately)
        
        CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
                                        nil,
                                        { (center: CFNotificationCenter?, observer: UnsafeMutableRawPointer?, name: CFNotificationName?, object: UnsafeRawPointer?, info: CFDictionary?) in
                                            //self._updateLockScreenStatusMarker()
                                            print("received notification: \(name!)")
                                        },
                                        "com.apple.springboard.lockcomplete" as CFString!,
                                        nil,
                                        CFNotificationSuspensionBehavior.deliverImmediately)
        
        CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
                                        nil,
                                        { (center: CFNotificationCenter?, observer: UnsafeMutableRawPointer?, name: CFNotificationName?, object: UnsafeRawPointer?, info: CFDictionary?) in
                                            //self._updateLockScreenStatusMarker()
                                            print("received notification: \(name!)")
                                        },
                                        "com.apple.springboard.lockstate" as CFString!,
                                        nil,
                                        CFNotificationSuspensionBehavior.deliverImmediately)
         */
    }

    private func _stopListeningForDeviceActivity() {
        NotificationCenter.default.removeObserver(self)
    }

    @objc func _updateLockScreenStatus() {

    override func viewDidLoad() {
        super.viewDidLoad()
        _updateButtonUI()
        NotificationCenter.default.addObserver(
            self,
            selector: #selector(_onAppEnterBackground),
            name: NSNotification.Name.UIApplicationDidEnterBackground,
            object: nil
        )
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    private func _listenForDeviceActivity() {
        NotificationCenter.default.addObserver(
            self,
            selector: #selector(_updateLockScreenStatus),
            name: LockStateChangedNotification,
            object: nil
        )
        
