First pass at integrating native client, all tests pass for native client.