Add safe command saving to CommandDecorator class. New commands are appended to a copy of the command file before that file is then used as the new command file.