Remove unused logger
Change name of inline function