Better logging/debugging system.