Added recording the match functionality