Miscellaneous macros