Replaced use of .data() with &vector[0]