Added prettification of exceptions.