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

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


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"
