Add static functions for direct call lua funcs.