Added preliminary data logging