Fixed bug where read was not added to totalRead