Add functions and variables