Modified code to have verification from Revit side as well.