Cleaned the template