Changed line ordering (output log first).