Added friendly error messages and added failed values to error messages.