Using a template instead of an exec