Working scripts for each index