Implemented sub attribute matching