Add template stuff.
Remove unused import.