Mods to BOK interface. Add getState()