Updated to reflect new CR format: component type is passed as the first argument.