Implemented two-layer classification. Relevance then Category.