Added support for XLS templates