adding readSector.