Made error messages a bit more informative.