Adding better errors for users.
Fixing typo.