Used nested exceptions more extensively.