Initial implementation of reader.