Implemented the SubComponent class (untested).