More robust behavior in case of errors and warnings.