Macro handler.