Added checker for console IO and file IO