Implement instruction matching