Added code callback to native example