Made exceptions better (#174).