Fixed crashes.
Changed how GoodCmp behaves.
Removed unneeded code.