Better log handling.