Made exceptions a bit more specific.