Add the visit method