Built new pattern data.