Updated long range correction code to work with new style tabulated functions