Restart the pattern at partition boundaries