Templates and Scanner