Minor updates.
Fixed logging bug.