Add replace functionality to order match.