Extracted the template