Updated deprecated calls.