Added a add method for multiple groups at the same time.