Updated visitor context retrieval for clarity.