Custom match checker.