Refactoring and use v_cmd_destroy().