More use of templates directory.