Match breakdowns

WIP. To be merged after #1044