Added get_template & add_vars functions.