You can use flags with your Addon by using the following commands:
ILLiad
AddTransactionFlag Command
RemoveTransactionFlag Command
SetSystemErrorFlag Command
Aeon
AddTransactionFlag Command