Some sensor logging bugfixes.