Made total visits work