Initial code for correct implementation of native functions.