Add user defined functions and commands