Added ability to redirect output for individual instances of interpreter.