Added option to turn of writing index column