Added export script. Trying to track down a bug.