Add index property to array events