Add native functions and implement them in the web version.