To extract data for GAMS