Have you read the sample code immediately below? That's what I have implemented.