Stop using deprecated functions.