Updated sample to use the new core