Fix index task, fix binomial indexing, script updates