Handling of native functions