Error handling and warnings.