Add trial ends to template