Evolution of patterning systems and circuit elements for locomotion.