Updated deprecated methods in 2.4