Added Network Error logic