Refactor console execution, add external printer