Added the Visitor implementation.