Logging warnings to stdrr and editing for consistency.