Fixed in/out log handling.