Adding Log Functionality

Update 2