Added capabilities to iterate through the components in an entity.