Added warning messages when numerical errors are encountered.