Put the selects in one function.