     }
     
     private func timingFunctionForAnimationCurve(curve: UIViewAnimationCurve) -> CAMediaTimingFunction {
-        var timingFunction: NSString? = nil
+        let timingFunction: String?
         
         switch curve {
         case .EaseIn:

        return animation
    }
    
    private func keyFrameAnimationForProperty(property: String, values: [NSValue], interval: NSTimeInterval, delay: NSTimeInterval) -> CAKeyframeAnimation {
        // Create new animation
        let animation = CAKeyframeAnimation(keyPath: property)
        

            self.layer.mask.addAnimation(gradientAnimation, forKey: "gradient")
        }
        
        let completion = CompletionBlock<(Bool) -> ()>({ (finished: Bool) -> () in
            if !finished {
                // Do not continue into the next loop
                return;
            }
            
            // Call returned home function
            self.labelReturnedToHome(true)
            // Check to ensure that:
