Macros + output formatting