Adding TriggerMacro processing.

- Not tested, but basic features should be complete