Properly vectorized the fifth tempering higher order function