     Run again if something goes wrong and the page is still needed
     """
     @timeouts[page] = setTimeout ((page) ->
-      if (not page in @pagesReceived or not page in @pagesRequested) and page in @neighbors @currentPage()
-        #console.log "Again #{page}"
+      if (page not in @pagesReceived or page not in @pagesRequested) and page in @neighbors @currentPage()
+        console.log "Again #{page}"
         @recvPage page
-    ).bind(@, page), 2000
+    ).bind(@, page), @requestTimeout * 1000
     """
     Subscription may block unless deferred.
     """

        @route "home",
            path: "/"
            template: t
            onBeforeRun: ->
                self.sess "currentPage", 1
        @route "page",
            path: pr
            template: t
            onBeforeRun: ->
                self.sess "currentPage", parseInt(@params.n)
  setTemplates: ->
    name = if @templateName is "" then @name else @templateName

Meteor.Pagination = (collection, settings = {}) ->
  @setCollection collection
  @setId collection
