Updated Select By Category sample