Index = 1, always

Also, the script seems to read the same words over and over. The same "NUMBEROFPASSWORDS", it does not move on to the next set.