Various tasks to make listening to macro events more likely.