Updating Index with code from deck