     , (err) ->
         # onFinish
         
-        t = 0
+        t1 = 0
+        t2 = 0
 
         request.push
 

            data:   data
            beforeRequest: (callback) ->

                t = Date.now()
                callback()

            onSuccess: (response, callback) ->

                processSuccessTileResponse response, tiles, callback

            onError: (err, callback) ->

                logger.error "[Portals] #{err.message}"

                processErrorTileResponse tiles, callback

            afterResponse: (callback) ->


                    logger.info "[Portals] " +
                        Math.round(request.done / request.max * 100).toString() +
                        "%\t[#{request.done}/#{request.max}]\t#{t2 - t1}ms" +
                        "\t#{Entity.counter.portals} portals, #{Entity.counter.links} links, #{Entity.counter.fields} fields"

                    callback()
