Template XLS generator script updated