Added constraints when loading dictionary.