Implement visit functionality