Added rudimentary implementation of read-state support.