Added helpful exception messages.