Functions should return NA if there is an error.
Functions should return NA if there is an error.