Add functions to compiler