Added updateValue method to update a entry