       logger.info('Rerun Task #' + taskID + ' - Remaining Transactions successfully decremented')
 
   # get fresh updated version of the task object
-  TasksModel.findOne
+  TaskModel.findOne
     _id: taskID
   , (err, task) ->
 

        if task.remainingTransactions == 0
          logger.info('Rerun Task #' + taskID + ' - Completed successfully')

      callback(task)

###############################################################
# Function for updating the task object with response details #

    response.message = "Internal Server Error"
    response.timestamp = new Date

    callback null, response

  # write data to request body
  if transaction.request.method == "POST" || transaction.request.method == "PUT"
