Split out simulation away from debug gui.