Logging and simplification.