Add a bunch of new functions from n3494.