Allow first valid uid setting to be passed
Also add last valid