Use inline version of the function in the loop