Improved redo-log, lock .log file, removed unnecessary process/pipe