Included a shout-out to dcreager who's code I pinched for the export function.