Template selection now basically working.