Adapted to async (docson.doc returns a promise)