             clearTimeout @timeout
             @timeout = null
 
-        # day after between 02:00am and 04:00am
+        # day after between 02:00am and 04:00am UTC
         delta = Math.random() * 120 | 0 # opa asm.js style
         now = moment()
         nextUpdate = now.clone().add(1, 'days')

                            .seconds(0)

        format = "DD/MM/YYYY [at] HH:mm:ss"
        msg = "> Next check of bank accounts on #{nextUpdate.format(format)}"
        console.log msg
        @timeout = setTimeout(
            () =>
                @checkAllAccesses()
            , nextUpdate.diff(now))


    checkAllAccesses: ->


            async.each accesses, process, (err) =>
                if err?
                    console.log "Error when polling accounts: #{err}"
                    return
                console.log "All accounts have been polled."
                @prepareNextCheck()

module.exports = accountPoller = new AccountsPoller
