(a) a line corresponding to a longitudinal axis of the drill-guide, and (b) a line corresponding to a longitudinal axis of the distal end of the nail are substantially collinear. The bone-penetration device is aligned with the nail-hole, using the drill-guide, in response to determining that the drill-guide is aligned with the nail-hole. Other embodiments are also described.