Add a preorder_label function