Sample index is added.