Add group related function.