Fixed scripts
Implemented actual pairwise generalization

Seems to work but it doesn't actually help (yet).