Added select functionality.
Updated select functionality to use variable variables.