Add: The basic change context by pattern response group feature.

Update: Also, now when generating the knowledge base we loop by reference.
This mean we no longer need the index variable.