Added support for commands and changed trigger GET