Added FivePhaseClarke function