Adding generation of functions.