Changed update method to use Hash#fetch