Pump upgrade

Hi

My pump just burned out and Im thinking of upgrading to a variable speed since I have to do the work anyway. I currently have a Hayward Tristar setup powered by a century 1.65 motor ( SP3210Z1M ) , Im wondering if there is a variable speed motor that will fit this hayward setup or if I need to just replace the entire unit, was hoping to save some of the cost reusing the housing.

Any help is appreciated

Thanks

SP3210Z1M