Added convert to Phasor function