Improved ALV data handling.
Improved averaging - offset was not considered.