Text this: THRD: Threshold-based hierarchical resource discovery for Grid environments