Updated deprecated method