Don't use deprecated method.