Added the patient update system (adding patients is not finished yet).