Added GetState command.