Added labeling for internal perimeters.