Fix bugs in label coloring, add snippet for performance header