Use native functions wherever possible
Merge pull request #936 from sjinks/native-funcs

Use native functions wherever possible