Thank you so much for this! I really need this for my project, now I can study it thoroughly. MSDN's example is so overkill for me.