Changed updateParticipates into a function called by logVisit