Changed deprecation message method