Improved deprecation notices and warnings.