Construct a list of commands in AM.