Functions

Use functions to extract data and export results.