To avoid resetting data and ovdata to zero when we send an override on top of another override. Using the data value to check if the control should be handled or not as the ovdata is been assigned to data in all set functions
I believe this should be in the response, so the situation that the script exists and can be executed, and is executed, and has some issues, is covered too. First line in the else block.
Converting U16 to U32. Presumably, U16 will wrap back to zero when it gets to 65535. We don't want our U32 to wrap, so we need to do something to handle this conversion properly.