Hopefully fix the logging this time.