Change select to variable function arguments