Implement calling native functions