Generic export functionality