Adding support for specifying a direction to readblock().