Improve treematica export.