Implemented auto compositing of cards by type.