Added code to modify the template based on status.