Updated sample for Select By Category