Added indexes and lines output