Modified collision detection