Added different mapping algorithms for reduction.