 
       # Create a job to make a thumbnail for each newly uploaded image
       addedFileJob = (file) ->
-         console.warn "Added file!", file
          # Don't make new jobs for files tha already have them
          unless file?.metadata?._Job?
             outputFileId = myData.insert

myJobs = new JobCollection 'queue',
   idGeneration: 'MONGO'
   transform: (d) ->
      console.log "Transforming...", d
      try
         res = myJobs.createJob d
         console.warn "succeeded in transform"
      catch e
         console.warn "failed in transform"
         res = d
      return res


      # When a file's data changes, call the appropriate functions
      # for the removal of the old file and addition of the new.
      changedFileJob = (oldFile, newFile) ->
         if oldFile.md5 isnt newFile.md5
            if oldFile.metadata._Job?
               # Only call if this file has a job outstanding
               console.warn 'Outstanding job!'
               removedFileJob oldFile
            addedFileJob newFile

      # Watch for changes to uploaded image files
      fileObserve = myData.find(
