Updated deprecated method calls.