Fixed bug that the callback for document processed was called with argument of all documents processed (result) instead of just document just proccessed (doc) ;-)