Add structure for calculate components and subindexes computation