Some helper functions, and adding an async path to exception lookup.