               callback null, results.post
         async.map posts, downloadFullPost, callback
       (posts, callback) ->
+        now = Date.now()
+        console.log "#{now - start} (#{now - last}) to get full posts"
+        last = now
         sortPosts req.app.db, req.app.fuzzyIO, req.agent, posts, req.user, req.token, callback
     ], (err, posts) ->
       if err
         next err
       else
+        now = Date.now()
+        console.log "#{now - start} (#{now - last}) to sort posts"
+        last = now
         res.render 'home',
           posts: posts
           title: "Today's Posts"

    if err
      next err
    else
      req.session.userID = user.id
      res.redirect "/", 303

router.post '/logout', (req, res, next) ->

  ], callback

updateUserAgent = (client, user, agentID, weights, callback) ->

  assert.ok _.isObject(client), "#{client} is not an object"
  assert.ok _.isObject(user), "#{user} is not an object"
  assert.ok _.isString(agentID), "#{agentID} is not a string"
  assert.ok _.isObject(weights), "#{weights} is not an object"

  newAgent = makeAgent weights
  client.putAgent agentID, newAgent, callback

