For simplicity, this example does not check all return codes, but good programming practices would dictate that they are checked after each RDM call.