Added -set-state-status to enable setting state and status