Applied PUT for TDS set functions again.
Implemented RELAYS to be dynamic.