Added Document type to ensure order of fields