Added a method to identify InputNodes