Hopefully a little better error reporting with exceptions.