Using newer error handling function.