Updated deprecated syntax.