First attempt on templating.