Implement state getters.

Provides a method to be able to get object states, rather than having to synchronise states.