Added command logic