Add group numbers and increase efficiency.