Change CompoundCommand to take a list