Added back in buildGlossary and related functions.