Added collision detection methods