Removed logging function