Added method "with_index"