In reply to LD.

Did you try running the complete example that I provided? Let me know if the complete example does not work.