Group addition code.