Added option to load dictionary from a file.