Fixed decprecated function name