Added State model and finished the new plugin check shell command.