Added code for exporting CTD data in batch.