Added a factory method for creating readers.