Add support code for static and dynamic vocabulary.