How to add a new native function?