Added compiling to runWithVisualizer