Finished packet handling

The button works now. Joy to all!