Ported the compare checker to use the visitor.