Updating to generic 'document' as requested by Neil