Next step: a general way to add library functions.