     callback err, sessionInformation
 
 
-constructTaskLogObject = (calculatorUserID, messageIdentifierString, callback) ->
+constructTaskLogObject = (calculatorUserID, registrationTime, messageIdentifierString, callback) ->
   taskLogObject = new TaskLog
     "createdAt": new Date()
+    "registrationTime": registrationTime
     "calculator":calculatorUserID
     "sentDate": Date.now()
     "messageIdentifierString":messageIdentifierString

  return taskPairs

sendTaskPairToQueue = (taskPair, callback) ->
  scoringTaskQueue.sendMessage {sessions: taskPair}, 0, (err,data) -> callback? err,data

getUserIDFromRequest = (req) -> if req.user? then return req.user._id else return null


          
        console.log "Queue message created at: #{taskLogJSON.createdAt}, level session submitted at #{levelSession.submitDate}"
        
        if taskLogJSON.registrationTime <= levelSession.submitDate
          console.log "Task has been resubmitted!"
          return sendResponseObject req, res, {"message":"The game has been resubmitted. Removing from queue..."}
  
