Updated the sample to actually work.