Add support for groupingHash option.