Abstract the documents within a dictionary a little better. Thanks to