Split index from names. Fix #8.