Added metadata
Added packet saving.