Simulate work and fix logging.