What are the functions of a labeling machine?