The RThreshold should be set to 1. If set to 0 the OnComm() event would never fire.
The code looks good so far. Try it with RThreshold = 1.