Replace obsolete functions by their new name