Removed log function