Added code to catch the case when an inconsistent product has been found.