Logging, which seems to make code more stable