Rename read function to something better