Fixed a boatload of exceptions.