Matthieu, this still needs refactoring into just one promise with a variable for the command name.