Finalised the template array generation method, need to develop the Excel generation method.