Think ive fixed the data logging