Fixed Log chaining error.
Fixed another chaining bug.
Fixed misstyped variable.
Moved files.