Implement native function interface.
Implement run routine.
Fix bug.