Removed references to internal functions in error messages