Added native calls. Still messy.