Added a readAll function