Add getter for state. (started/stopped)