Update call to deprecated method