Added command and resize option