Refactoring: use Match to handle interactions.