Change function to tag elements as printed.