Refactor.
Make the interpreter's evaluation process interruptable, i.e. asynchronous.