Combined export methods into a single function and button.