Fixes to rude exceptions. Added a few more utility functions.