Added first_index and last_index