Clean up log messages.
Replace the simulation code.