Add template loading.