Add de command and detroy function