Add some selector computation functions.