Implemented support for reading on stdin