       cassandraClient = client
       getSchemaVersion config, client, keyspace
       .then (schemaVersion) ->
-        migrate config, client, keyspace, migrationFiles, schemaVersion
+        migrate config, client, keyspace, migrationFiles, schemaVersion, interval
       .then (version) ->
         code = 0
       .catch (error) ->


quietMode = false
debugMode = false

logError = (message, error) ->
  errorMessage = if error? then ": #{error}" else ''

    quietMode = config.quiet
    debugMode = config.debug
    keyspace = config.cassandra.keyspace
    interval = program.interval ? 0

    if config.auth?
      logDebug "Connecting with simple user authentication."
