Export run function