Adding code required for accelerometer data logging for future use.