Modifed impact.py (remove unnecessary relations).