Used very ugly Objective-C and Swift type casting to add index into the title.