Simplified argselect function quite a bit.