Can now deal with multiple groups, e.g. one=10,two=20 or one=10,two