Fix for issue #13 (ADAT variable data not being written to final output)