Help WIth Device Handler - Intermatic CA3750

I use a zwave device made by Intermatic model number CA3750. This is a two channel relay that I use to turn on/off my pool equipment. The problem is this device does not handle communication very well. It sometimes takes the command to be sent a few times to sent a few times before it acknowledges the command.

I understand there is code that I can add to the device handler to keep sending a command until it is acknowledged from the device.

The device handler I am using is a great one found here:

Is there anybody that can help me with the code to have this handler send a command until it is received?