Added functionality for loading dictionary