Add code to get value between 0 and 1