Updated script to have multiple digits for index.