Added read functionality.