Add a wrapper for global functions