Allow specifying a max number of documents to process
Thumbnails should start with thumb/ not thumb.