Made error messages more user friendly