Functionality for reading implemented.