Fixed so logging works correctly with --verify