Pattern matching on elements in progress