A computer-guided system for orienting an insert during a surgical procedure, the computer-guided system comprising:a surgical table for supporting a patient, the surgical table being capable of movement about three axesa table inertial measurement unit for measuring movement of the surgical tablea patient inertial measurement unit for measuring movement of the patientan insert inertial measurement unit for measuring movement of the insert andcomputational means for determining the relative positioning of the patient and the insert based upon movement of the surgical table, movement of the patient, and movement of the insert.