Removed duplicate logging.