Added descartes error support.