Add a decent logging system.