Began creating the export function.