Added simplest document metadata support