       secretAccessKey: Meteor.settings.AWS.secretAccessKey
   else
     console.warn "AWS settings missing, arXiv PDF processing will not work"
+
+  # It seems there are no subject classes
+  ARXIV_OLD_ID_REGEX = /(?:\/|\\)([a-z-]+)(\d+)\.pdf$/i
+
+  # It seems there are no versions in PDFs
+  ARXIV_NEW_ID_REGEX = /(?:\/|\\)([\d.]+)\.pdf$/i
 
   Meteor.methods
     'refresh-arxhiv-pdfs': ->


          Storage.save 'arxiv' + Storage._path.sep + id + '.pdf', pdf

        # TODO: For now
        break

      console.log "Done"

          continue

        processPDF = (fun, props, pdf) ->
          match = ARXIV_OLD_ID_REGEX.exec props.path
          if match
            id = match[1] + '/' + match[2]
          else
            match = ARXIV_NEW_ID_REGEX.exec props.path
            if match
              id = match[1]
            else
