Added clear dictionary functionality