Registering native callbacks