Initial work on choosing templates.