Thank you!
I did post on this topic earlier but did not get much help.
I had to add encode/decode methods according to the format expected from agent. This does not seem correct and could easily break. I thought there must be a better way, but didn't get any info on that from your documentation or forum.
Will take a look at the code.