Renamed warn method to log_warning, to avoid conflicts.