We need this to poll the model and invalidate the gui so that it can repaint as the child process emits output