Update deprecated functions