Added functionality to change entries in the dictionary