                                      selector: #selector(updateTimerOnCountdown),
                                      userInfo: nil,
                                      repeats: true)
-        
         setStartButton(withState: false)
+        NSLog("User's target time: \(userTargetTime) minutes")
     }
     
     func triggerNotification() {

        taskTimer.timeRemaining = endPointValueInSec
        if Int(endPointValueInSec) <= 0 {
            stopTimer()
            circularSlider.endPointValue = 0
        }
    }
    

        let currentTime = NSDate()
        NSLog("Time at resume: \(currentTime)")
        let interval = currentTime.timeIntervalSince(timeBeforePause! as Date) as Double
        let intervalInMin = interval / 60
        
        guard intervalInMin < Double(userTargetTime) else {
            NSLog("You succeeded!!!")
            resetTimer()
            return
        }

        circularSlider.endPointValue = circularSlider.endPointValue - CGFloat(intervalInMin)
        operateTimer()
    }
    
    func resetTimer() {
        circularSlider.endPointValue = 0
        timerLabel.text = "0h 0m 0s"
    }

}
