Got basic export functionality working.