Added get_functions for templates