Added two new scripts for use in label collapsing