Move some native methods to native