Additionally, although there were probably other ways to program this feature, storing in the session and then setting the value later guarantees that users can't switch alternatives mid experiment.