Deleting unnecessary code and the index is now truely started from 0!