Simple get state update
Merge pull request #40 from ptony82/fix/getstate_update

Simple get state update