Add functions and constants