Update task name.
Use configured template.
Simplify code.