Added console input/output replacement