Started work on native port.
Adding native code; moving things around.