Added printing global labels to a file.