Made interpreter write to a passed output stream