Updated visits controller for gcalgorithm