Correct deprecated method