Fixed a problem with quantum and more logging stuff