Methods and surgical system for performing a surgical procedure. The surgical system includes a robotic system with a robotic arm having a surgical instrument attached thereto. A computer system of the robotic system receives at least one image and forms a model of a surgical area. A computer operated tracking system of the robotic system obtains position data related to a patient's bone from tracking elements. Based on the model of the surgical area and the tracked bone position, the robotic arm then performs the surgical procedure with the surgical instrument, and the robotic system adjusts the procedure as a result of the tracked bone position.