Add writing index