Added collisions tracking code