Added read functionality and correct ordering