Alternative function to fill repo array.