Cleaned CollisionDetection.