Added missing method for template errors