Visualizer: Fixed 'TODO: use for cycle'