Added support for PDF weights.