- Added getter function for state value. Dereferencing ptrs is ugly.