Implemented timeout to visualizer