Minor changes in collision detection.