Add functions as source files