Improved pointValue and pointGradient