Logic to create visitor