Made list numbering generic.