Made error messages more clear.