Revert "Improved read function"

This reverts commit 619c6b816dfb186f536470b3f3c1aee0d3892d1a.