Completed Logging Code