Write a script to export only the important parts