Implmeneted Bufferd reader instead of file reader.