Made macros inline functions
Inlined macro function