Remove dependency on dommy by switching to native calls.