Generalize hash selector