If the cyst has solid material or other complicating factors the ovary could be removed

Could you correct the punctuation please?
If the cyst has solid material, or other complicating factors, the ovary could be removed.