Adding implementation of getReader, warning fix