Update deprecated APIs