Added updating state to clientstate object