Update WriteMacro to reflect new RAT structure