Added --reduce and --json