         layer.addSublayer(ringLayer)
         animateArc(loaderValue: CGFloat(self.animateScale)) // changed here
     }
-    
-    
-    
-    
     
     private func backgroundArc() {
         

    @objc optional func arcAnimationDidStop()
}


// Nothing to see here , it is just a Pi

let π: CGFloat = CGFloat(M_PI)



// convenicence inits


extension KXThumbCircularProgressBar {

    public convenience init(ringWidth: CGFloat, ringHeight: CGFloat) {
        
        self.init(ringWidth: ringWidth, ringHeight: ringHeight,backgroundColor: UIColor.clear, ringBackgroundColour: UIColor(netHex: 0xaba8a8),  ringForegroundColour: UIColor.green, foreGroundArcWidth: 20, backGroundArcWidth: 8, arcStartAngle: 120, arcEndAngle: 60, arcMargin: 75)
        
        }
    
    
    public convenience init(ringWidth: CGFloat, ringHeight: CGFloat, backgroundColor: UIColor, ringBackgroundColour: UIColor, ringForegroundColour: UIColor) {
        
         self.init(ringWidth: ringWidth, ringHeight: ringHeight, backgroundColor: backgroundColor, ringBackgroundColour: ringBackgroundColour,  ringForegroundColour: ringForegroundColour, foreGroundArcWidth: 20, backGroundArcWidth: 8, arcStartAngle: 120, arcEndAngle: 60, arcMargin: 75)

        }
    
    
    public convenience init(ringWidth: CGFloat, ringHeight: CGFloat,arcStartAngle: CGFloat,
                            arcEndAngle: CGFloat, arcMargin: CGFloat) {
        
        self.init(ringWidth: ringWidth, ringHeight: ringHeight,backgroundColor: UIColor.clear, ringBackgroundColour: UIColor(netHex: 0xaba8a8),  ringForegroundColour: UIColor.green, foreGroundArcWidth: 20, backGroundArcWidth: 8, arcStartAngle: arcStartAngle, arcEndAngle: arcEndAngle, arcMargin: arcMargin)
        }
    
}


//Designable core code

@IBDesignable public class KXThumbCircularProgressBar: UIView {
    
    
    
    
    
    // ring background properties
    
    @IBInspectable public var ringBackgroundColour: UIColor = UIColor(netHex: 0xaba8a8)
    @IBInspectable public var ringForegroundColour: UIColor = UIColor.green
    
    
    
    
    //This part is still under testing
    

        
        if showText {
            drawText(rectSize: CGSize(width: rect.width, height: rect.height))
            self.countFrom(fromValue: 0.0, to: Float(self.animateScale * 100), withDuration: 2.0)
        }
        
        let center = CGPoint(x: bounds.width / 2, y: bounds.height / 2)
