 
 private let defaultAlgorithm: Generator.Algorithm = .SHA1
 private let defaultDigits: Int = 6
+private let defaultCounter: UInt64 = 0
+private let defaultPeriod: NSTimeInterval = 30
 
 private let kOTPAuthScheme = "otpauth"
 private let kQueryAlgorithmKey = "algorithm"

                    }
                    return NSTimeInterval(int)
                },
                defaultTo: 30) {
                    return .Timer(period: period)
            }
        }

                    }
                    return counterValue
                },
                defaultTo: defaultCounter) {
                    return .Counter(counter)
            }
        } else if string == kFactorTimerKey {
