Added functions to the template parameters for determining self.