Replace another deprecated method