Add back deprecated functions so that external projects won't break.