         self.addCircleAnimation()
 //        self.addSecondCircleAnimation()
         self.addFadeOut()
-        if(!self.green) {
+        if(!self.willFillColor) {
             self.endView(self.animationDuration)
         }
     }

        circleAnimation.removedOnCompletion = false
        circleAnimation.fromValue = NSNumber(float: 0.1)
        circleAnimation.toValue = NSNumber(float: randomNumber)
        if(self.green) {
            circleAnimation.toValue = NSNumber(float: 3)
            circleAnimation.fillMode = kCAFillModeForwards
        }
        circleAnimation.delegate = self.animationDelegate
        self.layer.addAnimation(circleAnimation, forKey: "scale")
    }
    
    //  Not used at the moment

    //  :green:     This was used for a specific use case for a project, but you can expand and use a different color if you like
    //              If this Bool is true, the fill color of the ripple will be GREEN
    
    init(frame: CGRect, animation: Double, willFillColor fillColor: Bool) {

        self.animationDuration = animation
        self.willFillColor = fillColor

        super.init(frame: frame)
        
