Added support for native functions