Added visiting functionality.