     createDoc: (filePath, stats, callback) =>
         absPath = path.join @syncPath, filePath
         [mimeType, fileClass] = @getFileClass absPath
-        @checksum absPath, (err, checksum) ->
+        @checksumer.push filePath: absPath, (err, checksum) ->
             doc =
                 path: filePath
                 docType: 'file'


    constructor: (@syncPath, @prep, @pouch) ->
        @side = 'local'

    # Start chokidar, the filesystem watcher
    # https://github.com/paulmillr/chokidar

            else                    "file"
        return [mimeType, fileClass]

    # Put a checksum computation in the queue
    checksum: (filePath, callback) ->
        @checksumer.push filePath: filePath, callback

    # Get checksum for given file
    computeChecksum: (task, callback) ->
        stream = fs.createReadStream task.filePath
        checksum = crypto.createHash 'sha1'
        checksum.setEncoding 'hex'
        stream.on 'end', ->
