Added uniform availability test in uniform function.