Optional IP logging added