Got smooth_phi to work.