Removed logger function