Updated this sample to use compatability mode