Added collisions check