Implemented the data retrieval methods.