Changing val to def so that result not cache