Adding a macro to the QAT