Solution for the export problem. Including a safety switch.