Fixed reducer. Seems to work now.