#342 Updated deprecated method