Export common function

Export common function