Add state accessors like `self.pending`

Closes #21