Update the reduce function to match the new schema, and provide utility commands for playing with it.