     # do)
     uniqueLogin = unifyLogin transcodedLogin
 
+
+    # Ensure the download of the small image takes at least 4s
+    timerDownload = Math.round(4 / uniqueLogin.length * 1000)
+
     # Each small image is downloaded. The small image is the image downloaded
     # when the user clicks on the image keyboard
-    async.eachSeries uniqueLogin, getSmallImage, (err) ->
-        if err?
-            next err
+    async.eachSeries uniqueLogin, getSmallImage(timerDownload), (err) ->
+        if err?
+            return next err
         #As trancodedLogin is an array, it is changed into a string
         login =""
         for i in transcodedLogin

    # - Import overall pdf with name YYYYMM_freemobile.pdf

    isMultiline = $('div.infosConso').length > 1
    $('div.factLigne.is-hidden').each ->
        amount = $($(this).find('.montant')).text()
        amount = amount.replace '€', ''

                log.error "No 302" if res.statusCode isnt 302
                log.error "No password" if not requiredFields.password?
                log.error "No login" if not requiredFields.login?
                return next 'bad credentials'

            options =
                method: 'GET'
