Per issue #160 and avoid using deprecated read API per #156

I'll take a look at fixing this tomorrow.