Added function to generate a vocabulary on the master.