Merge the swsp loop with the patterns.