Separated the function export from bin.