Added numbering method into own function