Added group assignation from 0 to 9