Debug mode changes, log spam fix