Need a space after the zero in `range(0,max_groups...`.