First version of Function.u.R