Add in filtering so that iteration can be on a specific type of Components. Modified testComponentInterface to show a use case.