Also updates index in src.