Added support for bud collision detection.