             UIColor(red:0.58, green:0.39, blue:0.55, alpha:1.0)]
         intensity = 0.5
         type = .Confetti
+        active = false
     }
-    
+
     public func startConfetti() {
         emitter = CAEmitterLayer()
-        
+
         emitter.emitterPosition = CGPoint(x: frame.size.width / 2.0, y: 0)
         emitter.emitterShape = kCAEmitterLayerLine
         emitter.emitterSize = CGSize(width: frame.size.width, height: 1)
-        
+
         var cells = [CAEmitterCell]()
         for color in colors {
             cells.append(confettiWithColor(color))
         }
-        
+
         emitter.emitterCells = cells
         layer.addSublayer(emitter)
+        active = true
     }
-    
+
     public func stopConfetti() {
         emitter?.birthRate = 0
+        active = false
     }
-    
+
     func imageForType(type: ConfettiType) -> UIImage? {
-        
+
         var fileName: String!
-        
+
         switch type {
         case .Confetti:
             fileName = "confetti"

        }
        return nil
    }
    
    func confettiWithColor(color: UIColor) -> CAEmitterCell {
        let confetti = CAEmitterCell()
        confetti.birthRate = 6.0 * intensity

    public var colors: [UIColor]!
    public var intensity: Float!
    public var type: ConfettiType!
    private var active :Bool!

    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        setup()
    }

    public override init(frame: CGRect) {
        super.init(frame: frame)
        setup()
    }

    func setup() {
        colors = [UIColor(red:0.95, green:0.40, blue:0.27, alpha:1.0),
            UIColor(red:1.00, green:0.78, blue:0.36, alpha:1.0),
