Implemented more of the reading functionality.