Made setupIndex private