Fixed method name deprecation.