Added utilities for matching blocks with labels