Update deprecated method