Changes to implement ellip_harm