Add a function.