Added return code 1 if there are errors.