Next iteration in implementing more of the pattern extraction functionality.