Added a "setMatchFunction" method