Add required dependencies to template.