Implementing match model.