Added getState()