Store pattern data with the pattern