Add match function and Match object.