Update call to deprecated func