Change formatting of the commands array