Improve read helper functions