Implementing read functionality.