Updating the reducer