Updated for new ApproxFun