Working on indexNext in env
Working on writing index to new patch items
Working on writing index to new patch items