Added some outline code to handle packet