Adding collisions detection