Changed sample to use the simplified version