Add general functional library.