Added a 'type' variable to each component.