Changed inline function in .h file to static inline