Added methods for console input/output