Add some utility functions.
Superior error reporting.