Added indexes into temporary table