BUG: Logging of environmental samples works, fixes #293 and #299

\m/