Now using LS for fitting transform. Not tested.