Add new recursive function to handle repeats. Hook up remaining labels.