Revert "In-line read()"

This reverts commit 96543579772bb6befb229296a52164b77517bc1b.