This will be called by native.