Minor fix

Updated to the new function.