Changed function name references to use PHP's magic FUNCTION constant