Fixing log handling and adding reset log script