Adding NearestOrthFun to temp.