Edited script +index

-changed the script to walk through each selected container to avoid
confusion