Made index a pointer