Added the reducer