Working on document and mime types.