Improved performance by adding more INLINE pragmas.