Order of commands in rule machine