Made log inline function