Add state to each node when loading extraction pattern.