Changed index to set