Now reading from stdin instead of file.